﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace Com.CMS263.BLL
{
    public class ReflactUtil
    {
        public static object InvokeMethod(string className,string methodName,Type[] pararmTypeList,object[] paramList ) 
        {
            Type t = Type.GetType(className);
            object obj = Activator.CreateInstance(t);
            MethodInfo[] mis = t.GetMethods();
            MethodInfo miname = t.GetMethod(methodName, pararmTypeList);
           return miname.Invoke(obj, paramList);
        }
    }
}
